package com.web.model;

import java.io.Serializable;
import java.lang.Long;
import java.lang.String;
import java.util.Date;
import java.lang.Double;

/**
 * 下单记录实体
 * </p>
 * TCathectic对应数据库表 tb_cathectic
 * 
 * @author wzy
 * @project web-model
 */
public class TCathectic implements Serializable,Comparable<TCathectic> {

	private static final long serialVersionUID = 1L;

	// 主键字段
	private Long cathecticId;// 主键 cathectic_id

	private String cathecticNum;// 订单号 cathectic_num

	private Long createUser;// 投注人 create_user

	private Date createTime;// 投注时间 create_time

	private String cathecticType;// dict表type字段 cathectic_type

	private String cathecticCode;// 投注内容 cathectic_code

	private Long cathecticInt;// 投注数量 cathectic_int

	private Double winAmt;// 奖金 win_amt

	private String isWin;// 是否赢 0未开奖，1赢，2输 is_win

	private Long termCd;// 投注期次 term_cd

	private Date checkDate;// 核算时间 check_date

	private String cathecticIp;

	private String cathecticCodeStr;
	private Double dictRate;// 赔率
	private String dateTime;
	private Integer dayCount;
	private String dictName;

	// set 和 get方法

	/**
	 * 主键
	 * 
	 * @param cathecticId
	 */
	public void setCathecticId(Long cathecticId) {

		this.cathecticId = cathecticId;
	}

	/**
	 * 主键
	 * 
	 * @return Long
	 */
	public Long getCathecticId() {

		return this.cathecticId;
	}

	/**
	 * 订单号
	 * 
	 * @param cathecticNum
	 */
	public void setCathecticNum(String cathecticNum) {

		this.cathecticNum = cathecticNum;
	}

	/**
	 * 订单号
	 * 
	 * @return String
	 */
	public String getCathecticNum() {

		return this.cathecticNum;
	}

	/**
	 * 投注人
	 * 
	 * @param createUser
	 */
	public void setCreateUser(Long createUser) {

		this.createUser = createUser;
	}

	/**
	 * 投注人
	 * 
	 * @return Long
	 */
	public Long getCreateUser() {

		return this.createUser;
	}

	/**
	 * 投注时间
	 * 
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {

		this.createTime = createTime;
	}

	/**
	 * 投注时间
	 * 
	 * @return Date
	 */
	public Date getCreateTime() {

		return this.createTime;
	}

	/**
	 * dict表type字段
	 * 
	 * @param cathecticType
	 */
	public void setCathecticType(String cathecticType) {

		this.cathecticType = cathecticType;
	}

	/**
	 * dict表type字段
	 * 
	 * @return String
	 */
	public String getCathecticType() {

		return this.cathecticType;
	}

	/**
	 * 投注内容
	 * 
	 * @param cathecticCode
	 */
	public void setCathecticCode(String cathecticCode) {

		this.cathecticCode = cathecticCode;
	}

	/**
	 * 投注内容
	 * 
	 * @return String
	 */
	public String getCathecticCode() {

		return this.cathecticCode;
	}

	/**
	 * 投注数量
	 * 
	 * @param cathecticInt
	 */
	public void setCathecticInt(Long cathecticInt) {

		this.cathecticInt = cathecticInt;
	}

	/**
	 * 投注数量
	 * 
	 * @return Long
	 */
	public Long getCathecticInt() {

		return this.cathecticInt;
	}

	/**
	 * 奖金
	 * 
	 * @param winAmt
	 */
	public void setWinAmt(Double winAmt) {

		this.winAmt = winAmt;
	}

	/**
	 * 奖金
	 * 
	 * @return Double
	 */
	public Double getWinAmt() {

		return this.winAmt;
	}

	/**
	 * 是否赢 0未开奖，1赢，2输
	 * 
	 * @param isWin
	 */
	public void setIsWin(String isWin) {

		this.isWin = isWin;
	}

	/**
	 * 是否赢 0未开奖，1赢，2输
	 * 
	 * @return String
	 */
	public String getIsWin() {

		return this.isWin;
	}

	/**
	 * 投注期次
	 * 
	 * @param termCd
	 */
	public void setTermCd(Long termCd) {

		this.termCd = termCd;
	}

	/**
	 * 投注期次
	 * 
	 * @return Long
	 */
	public Long getTermCd() {

		return this.termCd;
	}

	/**
	 * 核算时间
	 * 
	 * @param checkDate
	 */
	public void setCheckDate(Date checkDate) {

		this.checkDate = checkDate;
	}

	/**
	 * 核算时间
	 * 
	 * @return Date
	 */
	public Date getCheckDate() {

		return this.checkDate;
	}

	@Override
	public String toString() {

		return "TCathectic [cathecticId=" + cathecticId + ",cathecticNum="
				+ cathecticNum + ",createUser=" + createUser + ",createTime="
				+ createTime + ",cathecticType=" + cathecticType
				+ ",cathecticCode=" + cathecticCode + ",cathecticInt="
				+ cathecticInt + ",winAmt=" + winAmt + ",isWin=" + isWin
				+ ",termCd=" + termCd + ",checkDate=" + checkDate + "]";
	}

	public String getCathecticIp() {
		return cathecticIp;
	}

	public void setCathecticIp(String cathecticIp) {
		this.cathecticIp = cathecticIp;
	}

	public String getCathecticCodeStr() {
		return cathecticCodeStr;
	}

	public void setCathecticCodeStr(String cathecticCodeStr) {
		this.cathecticCodeStr = cathecticCodeStr;
	}

	public Double getDictRate() {
		return dictRate;
	}

	public void setDictRate(Double dictRate) {
		this.dictRate = dictRate;
	}

	public String getDateTime() {
		return dateTime;
	}

	public void setDateTime(String dateTime) {
		this.dateTime = dateTime;
	}

	public Integer getDayCount() {
		return dayCount;
	}

	public void setDayCount(Integer dayCount) {
		this.dayCount = dayCount;
	}

	@Override
	public int compareTo(TCathectic o) {
		 return this.getCreateTime().compareTo(o.getCreateTime());
	}

	public String getDictName() {
		return dictName;
	}

	public void setDictName(String dictName) {
		this.dictName = dictName;
	}

}
